package com.antdesignbackend.backend.news.noticeusers.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 通知公告
 *
 * @author 不二
 * @email NoticeUsers
 * @date 2020-07-26 21:31:12
 */

@Data
@TableName(value = "t_noticeusers")
public class NoticeUsers implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//公告id
	@TableField(value = "Nid")
	private Integer nid;
	//用户id
	@TableField(value = "Uid")
	private Integer uid;
	//状态：0未读，1已读
	@TableField(value = "Status")
	private Integer status;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("CreateTime")
	private Date createTime;
}
